home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 12 / 9 / DISK1298.ZIP / CHAP06.DOC < prev    next >
Text File  |  1989-01-20  |  42KB  |  1,600 lines

  1.  
  2.  
  3.  
  4.                                                 PRINTING
  5.  
  6.       CHAPTER 6  -  PRINTING
  7.        
  8.  
  9.       PRINT COMMAND
  10.  
  11.       _____________________________________________________________________
  12.       Edit  Search >Print< Files  Windows  Utilities  Quit
  13.       Print  Form  Sheet  Direct  Codes  Hardware  Top
  14.       _____________________________________________________________________
  15.  
  16.       Press [P] in response to the Main Menu to issue any of
  17.       the following commands:
  18.  
  19.  
  20.       Print:     Print a group of records.
  21.  
  22.       Form:      Specify the format for printing records.
  23.  
  24.       Sheet:     Define page length and margins.
  25.                  Specify how records are split at page
  26.                  boundaries.
  27.  
  28.       Direct:    Send text or codes directly to the printer.
  29.  
  30.       Codes:     Define the printer codes for underline and bold.
  31.  
  32.       Hardware:  Select the printer port.
  33.                  Specify whether a carriage return and new line
  34.                  feed are sent to the printer at the end of each
  35.                  line.
  36.                  Specify whether the program pauses before
  37.                  printing a new page.
  38.  
  39.       Top:       Set the printer to the top of a page.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.                                                         71
  49.  
  50.  
  51.       3by5 Chapter 6
  52.  
  53.       PRINT COMMAND: PRINT MENU 
  54.  
  55.       _____________________________________________________________________
  56.       >Print< Form Sheet  Direct  Codes  Hardware  Top
  57.       Print records from a file
  58.       _____________________________________________________________________
  59.  
  60.       The Print Menu's Print Command is used to print a group
  61.       of records to a printer, the screen or a file.  The records
  62.       are printed by record number and may be sorted alpha-
  63.       betically.  To print a group of records by a search key,
  64.       use the Search Command.
  65.  
  66.  
  67.       Press [P] to print.  If more than one file is open, the
  68.       program will ask you to select the file for printing.  It
  69.       will then ask for the range of records to print.
  70.  
  71.       Type the starting record number and press <Enter>.  Then
  72.       type the ending record number and press <Enter>.  
  73.  
  74.       The program will then ask you:  
  75.  
  76.       _____________________________________________________________________
  77.       From file FILENAME print records:
  78.       Sort records? (Y/N)
  79.       _____________________________________________________________________
  80.  
  81.       If you press [N], the program will start printing the
  82.       records in numerical sequence.
  83.  
  84.       If you pressed [Y] to sort the records, the program will
  85.       begin to sort the records by the first line of text if there
  86.       are no fields in the file.  Otherwise, the program will
  87.       display the names of the fields and ask for primary and
  88.       secondary sort fields.  If you want to sort by one field
  89.       alone, just press <Enter> in response to the secondary field
  90.       prompt.
  91.  
  92.  
  93.  
  94.  
  95.        72
  96.  
  97.  
  98.                                                 PRINTING
  99.  
  100.       Aborting printing:  To abort a printing session, press
  101.       <Esc>.  The program will ask you to confirm the command. 
  102.       Press [Y].
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.                                                         73
  143.  
  144.  
  145.       3by5 Chapter 6
  146.  
  147.       FORM COMMAND   
  148.  
  149.       _____________________________________________________________________
  150.       Print >Form< Sheet  Direct  Codes  Hardware  Top
  151.       Select print format
  152.       _____________________________________________________________________
  153.  
  154.  
  155.       This command is used to specify a format for printing
  156.       records.  Formats for printing records are stored as
  157.       standard 3by5 file records and are called PRINT FORMS. 
  158.       In response to the Print Command, press [F] for the Form
  159.       Command.  The program will ask you for the number of
  160.       the file that contains the Print Form:
  161.  
  162.       ____________________________________________________________________
  163.       File:
  164.       Enter number of file with Print Form.      0 = standard listing
  165.       ____________________________________________________________________
  166.  
  167.  
  168.       Type the file number.  The program will then ask for the
  169.       number of the record that contains the Print Form you
  170.       want to use.  Type the record number and press <Enter>. 
  171.       The Print Form will be loaded into memory and any
  172.       records printed will be printed in the format specified by
  173.       that record.
  174.  
  175.       If you want to reset the program to the standard format
  176.       for printing, type [0] <Enter>.  
  177.  
  178.  
  179.  
  180.       Selecting a Print Form While Searching
  181.  
  182.       Alternatively, you may load a Print Form while searching. 
  183.       After the record is located, the Search Command Menu will
  184.       be displayed at the bottom of the screen.  Press [L] to
  185.       load the record.
  186.  
  187.  
  188.  
  189.        74
  190.  
  191.  
  192.                                                 PRINTING
  193.  
  194.       STANDARD FORM
  195.  
  196.       The standard Print Format is to print one record after
  197.       another.  The record number is printed before the
  198.       record, all fields are included and the record is followed by
  199.       a blank line.  There is a six line top margin with the name
  200.       of the file on the second line and a six line bottom
  201.       margin.  For example:
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.                                                         75
  237.  
  238.  
  239.       3by5 Chapter 6
  240.  
  241.       _____________________________________________________________________
  242.  
  243.       A:\PROGRAMS.3X5
  244.  
  245.  
  246.  
  247.  
  248.           4
  249.       3by5 Starter Kit
  250.  
  251.       Softshell Corp.
  252.  
  253.       A good way to get started with free-text management systems.  
  254.       Features include five variable length fields per record, sort by
  255.       any field and the 3by5 Reference Manager.
  256.  
  257.           5
  258.       3by5
  259.  
  260.       Softshell Corp.
  261.  
  262.       3by5 is an information management program that offers speed, 
  263.       simplicity and versatility in entering, indexing and retrieving 
  264.       free-text and structured data.  Up to 26 variable length fields 
  265.       per record are allowed.
  266.  
  267.           6
  268.       3by5 Plus
  269.  
  270.       Softshell Corp.
  271.  
  272.       With the release of 3by5 Version 5.0, the features of 3by5 Plus 
  273.       have been incorporated into 3by5, and 3by5 Plus is no longer 
  274.       published.
  275.  
  276.  
  277.  
  278.  
  279.  
  280.       _____________________________________________________________________
  281.  
  282.  
  283.        76
  284.  
  285.  
  286.                                                 PRINTING
  287.  
  288.       Many other formats are possible.  The formats are stored
  289.       in standard 3by5 Print Form Files.  These files have the
  290.       extension "PFM".  Your 3by5 master diskette has a file
  291.       FORMS.PFM with sample Print Forms.  The forms will be
  292.       reviewed as an introduction to printing with 3by5.  Once
  293.       you load a Print Form into memory, you may close the file
  294.       that contained the Print Form.
  295.  
  296.  
  297.       Print Forms define the way in which text will be printed. 
  298.       Any text in the form will be printed.  The "@" symbol is
  299.       used as an instruction for printing specific information
  300.       (e.g. fields, field names, file names, etc.)
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.                                                         77
  331.  
  332.  
  333.       3by5 Chapter 6
  334.  
  335.       PRINT FORM: EXAMPLE 1
  336.  
  337.       _____________________________________________________________________
  338.       @A<                                  
  339.        
  340.  
  341.  
  342.  
  343.       _____________________________________________________________________
  344.  
  345.  
  346.       Record one of FORMS.PFM contains the simplest Print
  347.       Form. It is designed for printing from a file with no fields
  348.       or at most one field (e.g. file PROGRAMS.3X5).
  349.  
  350.       The "@A" on the first line indicates that the contents of
  351.       field A will be printed.  The field letter must be in upper
  352.       case for the contents to be printed.  In this case file
  353.       PROGRAMS.3X5 has no fields and the entire record is
  354.       considered to be field A.
  355.  
  356.       The "<" symbol indicates the carriage return mark that
  357.       results from pressing the <Enter> key.
  358.  
  359.       If a field is longer than one line, the following lines of
  360.       print will be adjusted downward.  
  361.  
  362.       This Print Form will result in one record being printed
  363.       after another.  Assuming that the Sheet Command settings
  364.       are unchanged, there will be a top margin of six blank
  365.       lines and a bottom margin of six blank lines.
  366.  
  367.       No spaces will be printed between records.  
  368.  
  369.       The results of using this FORM with file PROGRAMS.3X5
  370.       are shown on the next page.
  371.  
  372.       Note that there is a standard top margin of 6 lines and a
  373.       standard bottom margin of 6 lines.  Since no headers or
  374.       footers were defined, there is no text in either the top or
  375.       bottom margins.
  376.  
  377.        78
  378.  
  379.  
  380.                                                 PRINTING
  381.  
  382.  
  383.       _____________________________________________________________________
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.       3by5 Starter Kit
  391.  
  392.       Softshell Corp.
  393.  
  394.       A good way to get started with free-text management systems.  
  395.       Features include ten variable length fields per record, sort by
  396.       any field and the 3by5 Reference Manager.
  397.       3by5
  398.  
  399.       Softshell Corp.
  400.  
  401.       3by5 is an information management program that offers speed
  402.       simplicity and versatility in entering, indexing and retrieving 
  403.       free-text and structured data.  Up to 26 variable length fields 
  404.       per record are allowed.
  405.       3by5 Plus
  406.  
  407.       Softshell Corp.
  408.  
  409.       With the release of 3by5 Version 5.0, the features of 3by5 Plus 
  410.       have been incorporated into 3by5, and 3by5 Plus is no longer 
  411.       published.
  412.  
  413.  
  414.  
  415.  
  416.  
  417.       _____________________________________________________________________
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.                                                         79
  425.  
  426.  
  427.       3by5 Chapter 6
  428.  
  429.       PRINT FORM: EXAMPLE 2    (Blank lines between records)
  430.  
  431.       _____________________________________________________________________
  432.       @A<
  433.       <
  434.  
  435.  
  436.  
  437.  
  438.       _____________________________________________________________________
  439.  
  440.       Record two of FORMS.PFM contains a record format that
  441.       is very similar to record one of FORMS.PFM.  The only
  442.       difference is that there is a carriage return on line two. 
  443.       This will result in a blank line being printed after each
  444.       record.
  445.  
  446.       The results of using this FORM with file PROGRAMS.3X5
  447.       are shown on the next page.
  448.  
  449.       In this case the blank line with a carriage return in the
  450.       form record causes a blank line to be printed between
  451.       records.  If there were two blank lines in the Print Form
  452.       record, there would be two blank lines between records in
  453.       the printout.
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.        80
  472.  
  473.  
  474.                                                 PRINTING
  475.  
  476.           
  477.       _____________________________________________________________________
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.       3by5 Starter Kit
  486.  
  487.       Softshell Corp.
  488.  
  489.       A good way to get started with free-text management systems.  
  490.       Features include ten variable length fields per record, sort by
  491.       any field and the 3by5 Reference Manager.
  492.  
  493.       3by5
  494.  
  495.       Softshell Corp.
  496.  
  497.       3by5 is an information management program that offers speed,
  498.       simplicity and versatility in entering, indexing and retrieving 
  499.       free-text and structured data.  Up to 26 variable length fields 
  500.       per record are allowed.
  501.  
  502.       3by5 Plus
  503.  
  504.       Softshell Corp.
  505.  
  506.       With the release of 3by5 Version 5.0, the features of 3by5 Plus 
  507.       have been incorporated into 3by5, and 3by5 Plus is no longer 
  508.       published.
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.       _____________________________________________________________________
  516.                    
  517.  
  518.                                                         81
  519.  
  520.  
  521.       3by5 Chapter 6
  522.  
  523.       PRINT FORM: EXAMPLE 3      (Record numbers)
  524.  
  525.       _____________________________________________________________________
  526.       RECORD NUMBER: @#
  527.       @A<
  528.       <
  529.  
  530.  
  531.  
  532.       _____________________________________________________________________
  533.        
  534.       Record three of FORMS.PFM contains a record format that
  535.       is very similar to record two of FORMS.PFM.  The only
  536.       difference is that the first line contains the text "RECORD
  537.       NUMBER:" and is followed by the symbol "@#".  The text
  538.       "RECORD NUMBER:" will be printed on the line before
  539.       each reference and will be followed by the number of the
  540.       record.  The "@#" symbol can appear anywhere on a Print
  541.       Form (except the header or footer). 
  542.  
  543.       The results of using this FORM with file PROGRAMS.3X5
  544.       are shown on the next page.
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.        82
  566.  
  567.  
  568.                                                 PRINTING
  569.  
  570.              
  571.       _____________________________________________________________________
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.       RECORD NUMBER:   4
  579.       3by5 Starter Kit
  580.  
  581.       Softshell Corp.
  582.  
  583.       A good way to get started with free-text management systems.  
  584.       Features include ten variable length fields per record, sort by
  585.       any field and the 3by5 Reference Manager.
  586.  
  587.       RECORD NUMBER:   5
  588.       3by5
  589.  
  590.       Softshell Corp.
  591.  
  592.       3by5 is an information management program that offers speed,
  593.       simplicity and versatility in entering, indexing and retrieving 
  594.       free-text and structured data.  Up to 26 variable length fields 
  595.       per record are allowed.
  596.  
  597.       RECORD NUMBER:   6
  598.       3by5 Plus
  599.  
  600.       Softshell Corp.
  601.  
  602.       With the release of 3by5 Version 5.0, the features of 3by5 Plus 
  603.       have been incorporated into 3by5, and 3by5 Plus is no longer 
  604.       published.
  605.  
  606.  
  607.  
  608.  
  609.       _____________________________________________________________________
  610.        
  611.  
  612.                                                         83
  613.  
  614.  
  615.       3by5 Chapter 6
  616.  
  617.       PRINT FORM: EXAMPLE 4      (Headers)
  618.  
  619.       _____________________________________________________________________
  620.       @.<
  621.       @.RECORDS FROM FILE: @*<
  622.       @.< 
  623.       @.< 
  624.       @.< 
  625.       @.< 
  626.       REC# @#<
  627.       @A< 
  628.       -------------------------------------------------------------------<
  629.       _____________________________________________________________________
  630.  
  631.       Record four of FORMS.PFM contains a record format that
  632.       is similar to record three of FORMS.PFM.  The differences
  633.       are: 
  634.  
  635.       Six header lines have been added.  The symbol "@." at the
  636.       start of a line indicates a header or footer.  If the
  637.       "@." symbol is at the top of a Print Form, it indicates a
  638.       header.  If it is at the bottom of a Print Form, it
  639.       indicates a footer.
  640.  
  641.       The second line of the Print Form is a header line.  It
  642.       contains the text "RECORDS FROM FILE:", followed by the
  643.       symbol "@*".  The symbol "@*" indicates that the name of
  644.       the file being printed should be included at that location.
  645.  
  646.       Line nine of the Print Form has a dashed line.  It will
  647.       separate records.
  648.  
  649.       The results of using this FORM with file PROGRAMS.3X5
  650.       are shown on the next page.
  651.  
  652.       A header may contain any text you want to print.  It is
  653.       not necessary to include all the lines of a header.  If you
  654.       do not specify the text for a header line, it will be printed
  655.       as a blank line.
  656.  
  657.  
  658.  
  659.        84
  660.  
  661.  
  662.                                                 PRINTING
  663.  
  664.              
  665.       _____________________________________________________________________
  666.  
  667.       RECORDS FROM FILE: A:\PROGRAMS.3X5
  668.  
  669.  
  670.  
  671.  
  672.       REC#    4
  673.       3by5 Starter Kit
  674.  
  675.       Softshell Corp.
  676.  
  677.       A good way to get started with free-text management systems.  
  678.       Features include ten variable length fields per record, sort by
  679.       any field and the 3by5 Reference Manager.
  680.       -------------------------------------------------------------------
  681.       REC#    5
  682.       3by5
  683.  
  684.       Softshell Corp.
  685.  
  686.       3by5 is an information management program that offers speed,
  687.       simplicity and versatility in entering, indexing and retrieving 
  688.       free-text and structured data.  Up to 26 variable length fields 
  689.       per record are allowed.
  690.       -------------------------------------------------------------------
  691.       REC#    6
  692.       3by5 Plus
  693.  
  694.       Softshell Corp.
  695.  
  696.       With the release of 3by5 Version 5.0, the features of 3by5 Plus 
  697.       have been incorporated into 3by5, and 3by5 Plus is no longer 
  698.       published.
  699.       -------------------------------------------------------------------
  700.  
  701.  
  702.       _____________________________________________________________________
  703.  
  704.  
  705.  
  706.                                                         85
  707.  
  708.  
  709.       3by5 Chapter 6
  710.  
  711.       PRINT FORM: EXAMPLE 5      (Headers and Footers)
  712.  
  713.       _____________________________________________________________________
  714.       @.<
  715.       @.RECORDS FROM FILE: @*<
  716.       @.<
  717.       @.<
  718.       @.<
  719.       @.<
  720.       @*                         REC# @#
  721.       @A<
  722.       -------------------------------------------------------------------<
  723.       @.<
  724.       @.*****************************************************************
  725.       _____________________________________________________________________
  726.  
  727.  
  728.       Record five of FORMS.PFM contains a record format that
  729.       is similar to record four of FORMS.PFM.  The first two
  730.       footer lines have been defined:  the first footer line is
  731.       blank and the second contains a row of asterisks.  
  732.  
  733.       The results of using this Print Form with file
  734.       PROGRAMS.3X5 are shown on the next page.
  735.  
  736.       As with a header, it is necessary to only define those lines
  737.       of a footer that you want to contain text (or other
  738.       characters such as the asterisks above).
  739.  
  740.       Note that in this example, the file name and record number
  741.       are printed before each record.  It is shown just to
  742.       demonstrate that a file name can be placed anywhere
  743.       within a record and anywhere on a page.  The record
  744.       number was intentionally moved to the right side of the
  745.       page.
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.        86
  754.  
  755.  
  756.                                                 PRINTING
  757.  
  758.       _____________________________________________________________________
  759.  
  760.       RECORDS FROM FILE A:\PROGRAMS.3X5
  761.  
  762.  
  763.  
  764.  
  765.       A:\PROGRAMS.3X5                                         REC#    4
  766.       3by5 Starter Kit
  767.  
  768.       Softshell Corp.
  769.  
  770.       A good way to get started with free-text management systems.  
  771.       Features include ten variable length fields per record, sort by
  772.       any field and the 3by5 Reference Manager.
  773.       -------------------------------------------------------------------
  774.       A:\PROGRAMS.3X5                                         REC#    5     
  775.       3by5
  776.  
  777.       Softshell Corp.
  778.  
  779.       3by5 is an information management program that offers speed,
  780.       simplicity and versatility in entering, indexing and retrieving 
  781.       free-text and structured data.  Up to 26 variable length fields 
  782.       per record are allowed.
  783.       -------------------------------------------------------------------
  784.       A:\PROGRAMS.3X5                                         REC#    6
  785.       3by5 Plus
  786.  
  787.       Softshell Corp.
  788.  
  789.       With the release of 3by5 Version 5.0, the features of 3by5 Plus 
  790.       have been incorporated into 3by5, and 3by5 Plus is no longer 
  791.       published.
  792.       -------------------------------------------------------------------
  793.  
  794.  
  795.  
  796.       ********************************************************************
  797.       _____________________________________________________________________
  798.  
  799.  
  800.                                                         87
  801.  
  802.  
  803.       3by5 Chapter 6
  804.  
  805.       PRINT FORM: EXAMPLE 6      (Multiple Fields)
  806.  
  807.       _____________________________________________________________________
  808.       @.<         
  809.       @.@*<       
  810.       @.<         
  811.       @.<         
  812.       @.<         
  813.       @.<         
  814.       @a       @A              REC# @#<
  815.       @b       @B<
  816.       @c       @C<
  817.       <
  818.       @d       @D<
  819.       <
  820.       _____________________________________________________________________
  821.  
  822.       Record 6 of FORMS.PFM is designed for use with file
  823.       ADDRESS.3X5 of your 3by5 master diskette.  ADDRESS.3X5
  824.       has four fields:
  825.  
  826.         A:  Name field
  827.         B:  Address field
  828.         C:  Phone number(s)
  829.         D:  Comments
  830.  
  831.       In this example the name of the file will be printed in the
  832.       second line of the top margin.
  833.  
  834.       The "@a" symbol indicates that the name of the A field
  835.       should be printed, while the "@A" symbol indicates that the
  836.       contents of the A field should be printed.  If the "@"
  837.       symbol is followed by a lower case letter, the name of a
  838.       field is printed; if it is followed by an upper case letter,
  839.       the contents of the field are printed.
  840.  
  841.       The single carriage return on line 10 causes a blank line to
  842.       be printed between the telephone field and the comments
  843.       field.  If a field contains several lines, the following lines
  844.       of print will be adjusted downward.  
  845.  
  846.  
  847.        88
  848.  
  849.  
  850.                                                 PRINTING
  851.  
  852.       Record six of FORMS.PFM has the following Sheet
  853.       Command settings:
  854.  
  855.         Page Length:   66
  856.         Left margin:   11
  857.         Right margin:  76
  858.         Top Margin:     6
  859.         Bottom margin:  6
  860.         Conditional:    1
  861.  
  862.       The Sheet Command settings were entered into the record
  863.       by using the editor's Sheet Command function key
  864.       <Shift-F8>.  See page 32 for more information.
  865.  
  866.       The Conditional New Page value of 1 indicates that if
  867.       there is at least one line of text at the bottom of a page
  868.       (excluding the footer lines), the next record will be printed
  869.       on the current page and continued, if necessary, on the
  870.       following page.  This minimizes the number of pages
  871.       required to print a group of records, but may result in
  872.       some records being split across page boundaries.  
  873.  
  874.       If records 1 through 10 from file ADDRESS.3X5 are printed
  875.       using this Print Form, record 6 will be split across page
  876.       boundaries.
  877.  
  878.       Sheet Command settings entered into a Print Form using
  879.       the editor will over-ride the default settings defined by the
  880.       Print-Sheet Command.
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.                                                         89
  895.  
  896.  
  897.       3by5 Chapter 6
  898.  
  899.       PRINT FORM: EXAMPLE 7      (Conditional New Page)
  900.  
  901.       _____________________________________________________________________
  902.       @.<         
  903.       @.@*<       
  904.       @.<         
  905.       @.<         
  906.       @.<         
  907.       @.<         
  908.       @a       @A              REC# @#<
  909.       @b       @B<
  910.       @c       @C<
  911.       <
  912.       @d       @D<
  913.       <
  914.       _____________________________________________________________________
  915.  
  916.       Record 7 of FORMS.PFM is designed for use with file
  917.       ADDRESS.3X5 of your 3by5 master diskette.  It has the
  918.       same format as record 6, except that it has the following
  919.       Sheet Command settings:
  920.  
  921.         Page Length:   66
  922.         Left margin:   11
  923.         Right margin:  76
  924.         Top margin:     6
  925.         Bottom margin:  6
  926.         Conditional:    0
  927.  
  928.  
  929.       The Conditional New Page value of 0 indicates that if
  930.       there must be enough room on a page for a record to be
  931.       printed, or the program will skip to the next page and
  932.       print the current record.  This prevents records from being
  933.       printed across page boundaries, but may result in wasted
  934.       space at the bottom of each page.
  935.  
  936.       If records 1 through 10 from file ADDRESS.3X5 are printed
  937.       using this Print Form, record 6 will be printed on a new
  938.       page.
  939.  
  940.  
  941.        90
  942.  
  943.  
  944.                                                 PRINTING
  945.  
  946.       PRINT FORM: EXAMPLE 8      (Mailing labels)
  947.  
  948.       _____________________________________________________________________
  949.       @A<
  950.       @B
  951.  
  952.  
  953.       _____________________________________________________________________
  954.  
  955.       Record 8 of FORMS.PFM is designed for use with file
  956.       ADDRESS.3X5 of your 3by5 master diskette.  It will print
  957.       mailing labels containing the name and address fields.  As
  958.       noted in Example 6,  ADDRESS.3X5 has four fields:
  959.  
  960.         A:       Name field
  961.         B:       Address field (street, city, state, zip, etc.)
  962.         C:       Phone number(s)
  963.         D:       Comments
  964.  
  965.       Record 8 has the following Sheet Command parameters that
  966.       were set while editing the record:
  967.  
  968.         Page length        =    6    (assumes five lines per
  969.                                      label and one in between)
  970.         Left margin        =    10
  971.         Right margin       =    50
  972.         Top margin         =    0
  973.         Bottom Margin      =    0
  974.         Conditional        =    6    (one record per label)
  975.  
  976.  
  977.       The above settings will eliminate the printing of a header
  978.       or footer (top and bottom margins = 0).  Each label will be
  979.       treated as a page (Conditional New Page = Page Length). 
  980.       See pages 32 and 96 for information on using the Sheet
  981.       Command.
  982.  
  983.       The format of the record is simple.  On line one the name
  984.       of the person in field A will be printed.  On line two, the
  985.       address will begin.  It may be up to 5 lines long.  One
  986.       record is printed per page (label).
  987.  
  988.                                                         91
  989.  
  990.  
  991.       3by5 Chapter 6
  992.  
  993.       PRINT FORM: EXAMPLE 9      (Printing Person Fields)
  994.  
  995.       _____________________________________________________________________
  996.       Last_name, First_name:       @A<
  997.       First_name Last_name:        @A1<
  998.       First_name only:           @A2<
  999.       Last_name only:            @A3<
  1000.       <
  1001.       _____________________________________________________________________
  1002.  
  1003.       Record 9 of FORMS.PFM is designed for use with  record
  1004.       6 of file ADDRESS.3X5 of your 3by5 master diskette. 
  1005.       Record 6 of ADDRESS.3X5 has the name Wilkins, Robert P.
  1006.       in the first field which is defined as a Person Field.
  1007.  
  1008.       The contents of a Person Field are usually entered:
  1009.  
  1010.         Last_name, First_name Middle_name or Middle_initial.
  1011.  
  1012.       If the field letter is not followed by a digit, the contents
  1013.       of the field are printed unchanged.  If the field letter is
  1014.       followed by the digit 1, the contents of the field are
  1015.       printed First_name Middle_name or Middle_intitial
  1016.       Last_name.  If the field letter is followed by the digit 2,
  1017.       only the first name is printed.  If the field letter is
  1018.       followed by the digit 3, only the last name is printed.
  1019.  
  1020.       If Record 9 of FORMS.PFM is used as the Print Form for
  1021.       printing Record 6 of ADDRESS.3X5, the following record
  1022.       will be printed:
  1023.  
  1024.       _____________________________________________________________________
  1025.       Last_name, First_name:      Wilkins, Robert P.
  1026.       First_name Last_name:       Robert P. Wilkins
  1027.       First_name only:          Robert
  1028.       Last_name only:           Wilkins
  1029.        
  1030.       _____________________________________________________________________
  1031.  
  1032.                            
  1033.  
  1034.  
  1035.        92
  1036.  
  1037.  
  1038.                                                 PRINTING
  1039.  
  1040.       APPENDING FIELDS
  1041.  
  1042.       Sometimes you may want to append several fields
  1043.       together.  For example, you may have a file with the
  1044.       following fields:
  1045.  
  1046.         A Last name
  1047.         B First name
  1048.         C Street address
  1049.         D City
  1050.         E State
  1051.         F ZIP Code
  1052.  
  1053.       You can append the last name and first name fields
  1054.       together to get one name.  Similarly the City, State and
  1055.       Zip Code fields can be appended.
  1056.  
  1057.       The rule for appending fields is as follows:
  1058.         
  1059.       After the initial "@" symbol, there is a field letter.  This
  1060.       is followed immediately by another "@" which may be
  1061.       followed by a character to be printed or by another field
  1062.       name.  
  1063.  
  1064.       For example:
  1065.  
  1066.          @B@ @A            will print the first name, a space,
  1067.                            and the last name.
  1068.  
  1069.          @D@ @E@ @F        will print the city, a space, the state,
  1070.                            a space, and the ZIP Code.
  1071.  
  1072.  
  1073.       The ability to append fields has been added to 3by5 at the
  1074.       request of users who sort 3by5 records by ZIP Code or
  1075.       state and want to be able to print labels with the city,
  1076.       state and ZIP Code on one line.
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.                                                         93
  1083.  
  1084.  
  1085.       3by5 Chapter 6
  1086.  
  1087.       PRINT FORM CODES
  1088.  
  1089.       3by5 used the "@' symbol to signify a Print Form
  1090.       command.  The following codes may be used:
  1091.  
  1092.       @A  designates that the contents for field A will be printed
  1093.           at the location of the "@" symbol.  The field must be
  1094.           specified as an upper case letter (i.e. A - Z).
  1095.  
  1096.       @a  designates that the name of the field will be printed at
  1097.           the location of the "@"     
  1098.            (i.e. a - z).
  1099.  
  1100.       @#  designates that the current record number will be
  1101.           printed at the location of the "@".  The "#" symbol
  1102.           may be followed by a "-" sign to specify that the
  1103.           record number will be left justified.
  1104.            
  1105.           A "0" (zero) designates zero filling of any blank
  1106.           spaces. 
  1107.            
  1108.           Finally, a digit from 1 to 9 may be used to specify the
  1109.           number of spaces in the record field.  The rules are
  1110.           those used by the C language function printf(). 
  1111.  
  1112.       @*  The current file name will be printed
  1113.  
  1114.       @.  The line is a header or footer
  1115.  
  1116.       @$  The sheet format control line was used in Version 4.0
  1117.           Print Forms to set margins for printing. With the
  1118.           release of Version 5.0, Print Form margins are set
  1119.           using the Sheet Command while editing (see page 32).
  1120.  
  1121.           The sheet format control line created by earlier
  1122.           versions of 3by5 can still be read by 3by5 V5.0.  This
  1123.           command can appear only as the first two characters
  1124.           of the first line.  It must be followed by the page
  1125.           length, left margin, right, top margin, bottom margin,
  1126.           and Form Parameter (Y or N).  For example:
  1127.  
  1128.  
  1129.        94
  1130.  
  1131.  
  1132.                                                 PRINTING
  1133.  
  1134.                 @$ 66 6 6 15 90 Y
  1135.  
  1136.           Each parameter is separated by one or more spaces. 
  1137.           The order of the parameters is the same as that used
  1138.           by the Sheet Command. 
  1139.  
  1140.           In the above example, the page length is set to 66, the
  1141.           top and bottom margins to 6 lines each, the left
  1142.           margin to column 15 and the right margin to column
  1143.           90.  The Form Parameter set to Y indicates that each
  1144.           record will be printed on a separate page.
  1145.  
  1146.       @=  This symbol should appear at the end of a line.  It
  1147.           indicates that the contents of the line are to be
  1148.           printed on the same line as the form line.  The text
  1149.           will not be adjusted in an upward or downward
  1150.           direction.
  1151.  
  1152.       @-  This symbol should appear at the end of a line.  It
  1153.           indicates that the contents of the line should be moved
  1154.           up to the last printed line of text.
  1155.            
  1156.  
  1157.  
  1158.       \xxx A back slash followed by three digits is used to send
  1159.       a printer code.  The value of the three digits is sent to
  1160.       the printer. For example, \027 is sent as 27 (the escape
  1161.       code).
  1162.            
  1163.           
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.                                                         95
  1177.  
  1178.  
  1179.       3by5 Chapter 6
  1180.  
  1181.       SHEET COMMAND
  1182.  
  1183.       _____________________________________________________________________
  1184.       Print  Form >Sheet< Direct  Codes  Hardware  Top
  1185.       Set sheet margins, pause and form options
  1186.       _____________________________________________________________________
  1187.  
  1188.  
  1189.       The Sheet Command is used to specify the number of lines
  1190.       per page, the left, right, top and bottom margins.  It also
  1191.       specifies how records are split at page boudaries. 
  1192.  
  1193.       Press [S] to specify the Sheet Command.  The following
  1194.       screen will be displayed:
  1195.  
  1196.         _____________________________________________________________________
  1197.  
  1198.  
  1199.         Page length:   (0  - 66)               66
  1200.         Left margin:   (1  - 110)              11
  1201.         Right margin:  (11 - 120)              76
  1202.         Top margin:    (0  - 25)                6
  1203.         Bottom margin: (0  - 25)                6
  1204.         Conditional:   (0  - 66)                1
  1205.  
  1206.  
  1207.  
  1208.  
  1209.         <Esc> Cancel   <F10> save
  1210.         _____________________________________________________________________
  1211.  
  1212.  
  1213.       Page length is the length of the page in lines.  A standard
  1214.       8.5 x 11 inch page has 66 lines (6 lines per inch).  A 3by5
  1215.       card has 18 lines per page.
  1216.  
  1217.       Left Margin is the left margin for printing.
  1218.  
  1219.       Right Margin is the right margin for printing.  Any
  1220.       attempt to print past the right margin results in a carriage
  1221.       return and new line feed.  
  1222.  
  1223.        96
  1224.  
  1225.  
  1226.                                                 PRINTING
  1227.  
  1228.       Top Margin is the number of lines the printer will leave at
  1229.       the top of a page before printing records.  
  1230.  
  1231.       Bottom Margin is the number of lines the printer will leave
  1232.       at the bottom of the page.
  1233.  
  1234.       Conditional refers to Conditional New Page.  It defines how
  1235.       the printer splits records at page boundaries.  The
  1236.       Conditional New Page is the number of lines that must be
  1237.       present at the bottom of the page before the program will
  1238.       start printing a record.  
  1239.  
  1240.       If the Conditional New Page is greater than or equal to
  1241.       the page length, each record is printed as a separate
  1242.       page.  For printing 3x5 cards or large records the Page
  1243.       Length should be set to 18 lines and the Condition New
  1244.       Page set to 18.  If you are printing references on standard
  1245.       8.5 x 11 inch paper, most likely you will want to print
  1246.       several records on a page, in which case the Conditional
  1247.       New Page should be set between 0 and 6.
  1248.  
  1249.       If the Conditional New Page is set to 0 (zero) and there
  1250.       are not enough lines remaining on the current page to
  1251.       print the entire contents of the next record, the program
  1252.       will skip to the next page.
  1253.  
  1254.       Type in your new printer parameters and press enter after
  1255.       each value.  You may use the Up and Down Arrow keys to
  1256.       move from one value to another.  
  1257.  
  1258.       When you are finished, press <F10> to save the new
  1259.       values.  Press <Esc> to cancel any values you have entered.
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.                                                         97
  1271.  
  1272.  
  1273.       3by5 Chapter 6
  1274.  
  1275.       DIRECT COMMAND
  1276.  
  1277.       _____________________________________________________________________
  1278.       Print  Form  Sheet >Direct< Codes  Hardware  Top
  1279.       Type text or printer codes directly to printer
  1280.       _____________________________________________________________________
  1281.  
  1282.       The Direct Command allows you to type a line of text and
  1283.       have it printed directly to the printer after you press
  1284.       <Enter>.  
  1285.  
  1286.       Codes may be inserted by using a back slash followed by
  1287.       three decimal digits for the code.  For example, the line
  1288.  
  1289.         \027\071<Enter> 
  1290.  
  1291.       will send codes 27 and 71 to the printer and will turn on
  1292.       bold printing on an IBM or Epson dot matrix printer.
  1293.  
  1294.       Press <Esc> when you are finished sending text or codes
  1295.       directly to the printer.
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.        98
  1318.  
  1319.  
  1320.                                                 PRINTING
  1321.  
  1322.       CODES COMMAND
  1323.  
  1324.       _____________________________________________________________________
  1325.       Print  Form  Sheet  Direct >Codes< Hardware  Top
  1326.       Set printer codes for underline and bold
  1327.       _____________________________________________________________________
  1328.  
  1329.       The Codes Command allows you to specify the printer
  1330.       codes for printing bold text and for underlining.  3by5 bold
  1331.       and underline commands are set for the IBM or Epson dot
  1332.       matrix printer.  If you have another printer, you can
  1333.       specify the codes that will be sent to the printer for
  1334.       printing bold text and for underlining.  
  1335.  
  1336.       Press [D] and the following prompt will appear:
  1337.  
  1338.       _____________________________________________________________________
  1339.       Bold on: \027\071
  1340.       Type command sequence and press <Enter>.
  1341.       _____________________________________________________________________
  1342.  
  1343.       This is the command sequence to start bold printing on
  1344.       IBM and Epson dot matrix printers.  You may type in any
  1345.       code sequence up to 20 characters in length.  Each code
  1346.       character is formed by a "\" followed by three decimal
  1347.       digits. 
  1348.  
  1349.       After you press <Enter>, the program will prompt you for
  1350.       the command sequence to stop bold printing:  "Bold off:
  1351.       \027\072"
  1352.  
  1353.       You may type a new command sequence or press <Enter> to
  1354.       retain the current command sequence.
  1355.  
  1356.  
  1357.       After you press <Enter>, the program will prompt you for
  1358.       the command sequence to start underlining:  
  1359.       "Underline on: \027\045\001"
  1360.  
  1361.       You may type a new command sequence or press <Enter> to
  1362.       retain the current command sequence.
  1363.  
  1364.                                                         99
  1365.  
  1366.  
  1367.       3by5 Chapter 6
  1368.  
  1369.       After you press <Enter>, the program will prompt you for
  1370.       the command sequence to stop underlining:  
  1371.       "Underline off: \027\045\000"
  1372.  
  1373.       You may type a new command sequence or press <Enter> to
  1374.       retain the current command sequence.
  1375.  
  1376.       See your printer manual to determine the proper codes for
  1377.       bold printing and underlining.
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.        100
  1412.  
  1413.  
  1414.                                                 PRINTING
  1415.  
  1416.       HARDWARE COMMAND
  1417.  
  1418.       _____________________________________________________________________
  1419.       Print  Form  Sheet  Direct  Codes >Hardware< Top
  1420.       Set hardware parameters
  1421.       _____________________________________________________________________
  1422.  
  1423.  
  1424.       The Printer Hardware Command is used to specify the printer
  1425.       port (0 - 3), whether a new line feed should be transmitted to
  1426.       the printer after each carriage return, and whether the printer
  1427.       should pause after each page.  The default printer port is #1
  1428.       and the default end of line is to send a carriage return and
  1429.       new line feed. 
  1430.  
  1431.  
  1432.       Press [H] for the Hardware Command.  The program will
  1433.       display the following:
  1434.  
  1435.       _____________________________________________________________________
  1436.       Printer 1    New Line Feed  Y    Pause N
  1437.       Printer number (0=Screen  1=Printer 1  2=Printer 2  3=Print File
  1438.       _____________________________________________________________________
  1439.  
  1440.  
  1441.  
  1442.       The default printer is number 1.  If you want to direct
  1443.       printing to the screen, just type [0] and all printing will
  1444.       be directed to the screen.  If you want to print to an
  1445.       ASCII print file, press [3].  The program will ask for the
  1446.       number of the open file to which printing will be directed. 
  1447.       Select a non-3by5 file.    
  1448.  
  1449.       The program will move to the New Line Feed prompt.  If
  1450.       your printer performs a new line feed after each carriage
  1451.       return, type [N] in response to the New Line Feed prompt.
  1452.  
  1453.       The program will move to the Pause prompt.  Press [Y] if
  1454.       you want the printer to pause after each page is printed. 
  1455.       This will allow you to insert another sheet of paper.
  1456.  
  1457.  
  1458.                                                        101
  1459.  
  1460.  
  1461.       3by5 Chapter 6
  1462.  
  1463.       TOP COMMAND
  1464.  
  1465.       _____________________________________________________________________
  1466.       Print  Form  Sheet  Direct  Codes Hardware >Top<
  1467.       Set printer to top of page
  1468.       _____________________________________________________________________
  1469.  
  1470.       The Top Command is used to direct 3by5 that you are
  1471.       setting the printer to the top of a new page.  It is used if
  1472.       the paper is not aligned properly, if you change paper
  1473.       while printing, or if you abort printing and want to start
  1474.       on a new page.
  1475.  
  1476.       Press [T] and the program will prompt you:
  1477.  
  1478.       _____________________________________________________________________
  1479.       Set printer to top of page.
  1480.       Press <Enter> to continue.
  1481.       _____________________________________________________________________
  1482.  
  1483.       Manually position the paper to the top of the page, and
  1484.       press <Enter>.
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.        102
  1506.  
  1507.  
  1508.                                                 PRINTING
  1509.  
  1510.       This page reserved for notes.
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.                                                        103
  1553.  
  1554.  
  1555.       3by5 Chapter 6
  1556.  
  1557.            
  1558.           
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.        104
  1600.